<?php
/**
 * Created by PhpStorm.
 * User: fengzi
 * Date: 2019/5/29
 * Time: 17:18
 */

namespace app\vehicle\model;
use think\Model;

class User extends Model
{
    public function info(){
        return $this->hasOne('user_info','user_id','id');
    }
    public function getBirthdayAttr($value){
        return $value?date('Y-m-d',$value):'';
    }
}